package com.fusion.task.controller;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import net.fusion.test.DemoService;
import net.fusion.test.FusionService;
import net.fusion.test.HumanService;
import net.fusion.test.TestService;

@RestController
public class TestController {

	@Autowired
	private TestService testService;
	@Autowired
	private DemoService demoService;
	@Autowired
	private FusionService fusionService;
	@Autowired(required = false)
	private HumanService humanService;
	
	@GetMapping("test")
	public ResponseEntity<String> test(){
		testService.test();
		demoService.test();
		fusionService.test();
		humanService.test();
		System.out.println(testService);
		System.out.println(demoService);
		System.out.println(fusionService);
		System.out.println(humanService);
		return ResponseEntity.ok(UUID.randomUUID().toString());
	}
}
